package com.microcm.common;

public class Final
{
	// 店标地址的前缀
	public static final String TAOBAO_SHOP_LOGO_URL_PRIFIX = "http://logo.taobao.com/shop-logo";

	// --------[系统配置key相关]----------------------------------

	public static final String TAOBAO_NICK = "TAOBAO_NICK";

	// 淘宝应用的appSecret
	public static final String TAOBAO_API_APP_KEY = "TAOBAO.API.APP.KEY";

	// 淘宝应用的appSecret
	public static final String TAOBAO_API_APP_SECRET = "TAOBAO.API.APP.SECRET";

	// 淘宝应用的登陆授权访问地址
	public static final String TAOBAO_API_APP_CONTAINER = "TAOBAO.API.APP.CONTAINER";

	// 淘宝应用接口调用地址
	public static final String TAOBAO_API_INVOKE_URL = "TAOBAO.API.INVOKE.URL";

	// 淘宝API接口相关的FIELD的KEY
	public static final String API_FIELDS_taobao_user_get = "API.FIELDS.taobao.user.get";

	public static final String API_FIELDS_taobao_shop_get = "API.FIELDS.taobao.shop.get";

	public static final String API_FIELDS_taobao_logistics_address_search = "API.FIELDS.taobao.logistics.address.search";

	public static final String API_FIELDS_taobao_areas_get = "API.FIELDS.taobao.areas.get";

	public static final String API_FIELDS_taobao_trades_sold_get = "API.FIELDS.taobao.trades.sold.get";

	// *****************************************

	// 网站的title
	public static final String SERVER_TITLE = "SERVER.TITLE";

	// 网站的keyword
	public static final String SERVER_KEYWORDS = "SERVER.KEYWORDS";

	// 网站的description
	public static final String SERVER_DESCRIPTION = "SERVER.DESCRIPTION";

	// 网站的logoText
	public static final String SERVER_LOGO_TEXT = "SERVER.LOGO.TEXT";

	// 网站的logo background
	public static final String SERVER_LOGO_BACKGROUND = "SERVER.LOGO.BACKGROUND";

	// ===================================================

	// --------[缓存相关]----------------------------------
	public static final String CACHE_KEY_PROVINCE_DAT = "CACHE_KEY_PROVINCE_DAT";

	public static final String CACHE_KEY_CITY_DAT = "CACHE_KEY_CITY_DAT";

	public static final String CACHE_KEY_DIST_DAT = "CACHE_KEY_DIST_DAT";

	// ===================================================

	// --------[登陆相关]----------------------------------

	// 用户登陆SESSION的KEY标记
	public static final String ONLINE_MGR_FLAG = "SYSTEM_SUPER_ONLINE";

	public static final String ONLINE_USER_FLAG = "SYSTEM_USER_ONLINE";

	// ===================================================

	// --------[系列号相关]-------------------------------

	// 系统序列号类型
	public static final String SEQ_TYPE_SYSTEM = "SYSTEM";

	// 菜单序列号类型
	public static final String SEQ_TYPE_MENU = "MENU";

	// 功能序列号类型
	public static final String SEQ_TYPE_FUNCTION = "FUNCTION";

	// 用户序列号类型
	public static final String SEQ_TYPE_USER = "USER";

	// 商品序列号类型
	public static final String SEQ_TYPE_GOODS = "GOODS";

	// 系统系列号前缀
	public static final String SEQ_SYSTEM_STAFF = "1";

	// 菜单表序序号前缀
	public static final String SEQ_MENU_STAFF = "m";

	// 功能表序序号前缀
	public static final String SEQ_FUNCTION_STAFF = "f";

	// 用户表序序号前缀
	public static final String SEQ_USER_STAFF = "9";

	// ===================================================

	// -----[淘宝订单状态]----------------------------------
	// 淘宝订单状态
	public static final String[] ORDER_STATUS =
	{ "WAIT_SELLER_SEND_GOODS", "__WAIT_BUYER_CONFIRM_GOODS", "TRADE_BUYER_SIGNED", "TRADE_FINISHED", "TRADE_CLOSED" };

	// 淘宝订单退款的状态
	public static final String[] REFUND_STATUS =
	{ "WAIT_SELLER_AGREE", "WAIT_BUYER_RETURN_GOODS", "WAIT_SELLER_CONFIRM_GOODS", "SELLER_REFUSE_BUYER", "CLOSED", "SUCCESS" };

	// ===================================================

	// -----[LUCENE索引相关]----------------------------------
	// 索引目录配置KEY
	public static final String INDEX_ROOT_DIR = "index.root.dir";

	// 商品索引目录
	public static final String INDEX_GOODS = "goods";

	// 店铺索引目录
	public static final String INDEX_SHOP = "shop";

	// 店铺索引目录
	public static final String INDEX_USER = "user";

	// ===================================================

	// -----[其他的常量]----------------------------------
	// 在首页类别显示的标签，在缓存中的用MENU的id将加上这个值作为KEY
	public static final int PREFIX_TAG_ON_MAIN_PAGE_ID = 90000000;

	// 菜单的URL中作为类别的替换标记
	public static final String MARK_FOR_CATEGORY = "$C";

	// 菜单的URL中作为关键字的替换标记
	public static final String MARK_FOR_KEYWORD = "$Q";

	// 默认的unid
	public static final String UNID_DEFAULT = "99999999";

	// ===================================================
}
